GBML manual / Using the editor

Your first song in five minutes

Start from a ready-made song style in the music editor, hear it, change a few notes, mute a channel and save it into your game.

Before you start

You need a project open, made for the console you want the song on. Everything below is the same on the Game Boy Advance, the Game Boy and the Game Boy Color; only the sounds differ.

Steps

  1. Open the editor. Go to the Music tab. In the toolbar press New song. The notes appear in the middle as colored bars, one lane for each channel. (Press Grid in the top bar if you would like the tracker table, with a column for each channel.)
  2. Pick a style. On the left, open Genre templates by clicking its name. Click Platformer. It starts playing, so you hear it before you choose it. Click the others to compare them. Click the one that is playing to stop it.
  3. Use it. Press Use beside Platformer. A new song appears in the grid, with its sounds already in the Instruments list. If you had notes in the open song, the editor asks first.
  4. Play it. Press Play, or press Space. The row that is playing is marked, and the view follows the song from pattern to pattern. Press Loop if you want it to start again when it ends. Press Stop to stop. (Space plays and stops too, but only when a cell of the grid is selected, because a button you just clicked uses the Space key for itself.)
  5. Hear one channel. Each channel has a Solo button. Press the Solo of the melody to hear only that channel, and press it again to hear everything. The Mute next to it silences a channel instead. This changes only what you hear while you work, not the song.
  6. Change a note. Press Grid, then click a cell in the melody's column that has a note. (In Lanes you can instead drag a bar up or down, or right-click it.) Type a note key, for example Z for a C or C for an E, to put a different note there, and the cursor moves down a row. Type a few more. Press Delete to clear a cell, or Ctrl+Z to undo.
  7. Read it in letters and numbers. Friendly notation is on, so the grid shows C4 Lead loud. Press Friendly notation to see C-4 01 v40 instead, and again to go back.
  8. Look at the structure. In Song structure, each step is a pattern. Click one to show it. Drag a step to change the order, or hold Alt and drop it to make a copy that you can change without touching the first.
  9. Check Problems. Open Problems on the right. A song made from a template has none, and the section says so. If you add a note the console cannot play, it appears here, and a click takes you to it.
  10. Name it and save it. Click the name at the top, type something such as Level one, and press Enter. Then press Save (or Ctrl+S). The song is now in your game's Songs list in the Music tab, and the not saved mark goes away.

Using it in a game

nn the Music tab, your song is in the list of songs. Use its name in your code the way every other song is used: music_play starts it and music_fade_to changes to it from another. Sound and music shows both.

Where to go from here

See also: The music editorThe music editor on each consoleSound and music